{include file="public_head"}
{include file="public_menu"}
<style>
    #selected_price{
        font-size: 22px;
        line-height: 32px;
        color: #D23030;
        margin-left: -8px;
    }
    #bdshare_weixin_qrcode_dialog{
        height: 330px !important;
    }
</style>
<!--<script src="__STATIC__/js/shop_good.js"></script>-->
<script>
    $(function () {
        $(".list_color li").click(
                function () {
                    $(this).addClass("active").siblings().removeClass("active");
                }
        );
        $(".list_det_title li").click(
                function () {
                    var num = $(".list_det_title li").index(this);
                    $(this).addClass("active").siblings().removeClass("active");
                    $(".list_det_con>div").eq(num).css({display: "block"});
                    $(".list_det_con>div").eq(num).siblings().css({display: "none"});
                }
        );
        $(".list_level li").click(
                function () {
                    var num = $(".list_level li").index(this);
                    $(this).addClass("active").siblings().removeClass("active");
                    $(".list_level_con>div").eq(num).css({display: "block"});
                    $(".list_level_con>div").eq(num).siblings().css({display: "none"});
                }
        );
        $(".page_review ul li").not(".more").not(".prev").not(".next").click(
                function () {
                    $(this).addClass("active").siblings().removeClass("active");
                }
        )
    });
    window.onload = function()
    {
        var Picture = ['__STATIC__/img/icon30.png','__STATIC__/img/icon29.png'], Index = 0;
        $('.icon_img').click(function () {
            ++Index
            Index < Picture.length || (Index = 0)
            $(this).attr('src', Picture[Index]);
        });
    }




</script>

<div class="lottery_det">
    <div class="lottery_cur">
        <div>
            <div class="cur">
                <a href="{:url('Shop/index',['shop_id'=>$info['shop']['member_id']])}" target="_blank">{$info['shop']['title']}</a> >
            </div>
            <div class="shop">
                <span class="name left" onclick="back_index();" style="cursor: pointer;">{$info.shop.title}</span>
                <div class="contact left" onclick="contact_seller()" style="cursor: pointer"><img src="__STATIC__/img/icon28.png" title="" alt="" class="left"><span class="left">联系卖家</span></div>
            </div>
        </div>
    </div>
    <div class="lottery_content">
        <div class="lot_det_con">
            <div class="show_pic">
                <div id="showbox" style="background: white;">
                    <img src="/{$info.picUrl}" id="mmm" width="340" height="340"/>
                    {volist name="info['picArr']" id="vo"}
                    <img src="/{$vo}" width="340" height="340"/>
                    {/volist}
                </div><!--展示图片盒子-->
                <div id="showsum"></div><!--展示图片里边-->
                <p class="showpage">
                    <a href="javascript:void(0);" id="showlast"><img src="__STATIC__/img/prev.png"></a>
                    <a href="javascript:void(0);" id="shownext"><img src="__STATIC__/img/next.png"></a>
                </p>
                <script type="text/javascript">
                    $(document).ready(function () {
                        var showproduct = {
                            "boxid": "showbox",
                            "sumid": "showsum",
                            "boxw": 347,//宽度,该版本中请把宽高填写成一样
                            "boxh": 347,//高度,该版本中请把宽高填写成一样
                            "sumw": 52,//列表每个宽度,该版本中请把宽高填写成一样
                            "sumh": 52,//列表每个高度,该版本中请把宽高填写成一样
                            "sumi": 12,//列表间隔
                            "sums": 5,//列表显示个数
                            "sumsel": "sel",
                            "sumborder": 1,//列表边框，没有边框填写0，边框在css中修改
                            "lastid": "showlast",
                            "nextid": "shownext"
                        };//参数定义
                        $.ljsGlasses.pcGlasses(showproduct);//方法调用，务必在加载完后执行
                    });
                </script>
                <div class="collect_share"><a href="javascript:collect({$info['id']},1);" class="left" style="margin-top:3px;">
                    {eq name="good_collect" value="1"}
                        <img src="__STATIC__/img/icon30.png" class="icon_img">
                    {else/}<img src="__STATIC__/img/icon29.png" class="icon_img">
                    {/eq}
                    收藏商品</a>
                    <!--百度分享-->
                    <div class="bdsharebuttonbox left" style="display: inline-block;" id="fen">
                        <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                        <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                        <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                        <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                    </div>
                </div>
            </div>
            <div class="show_lot_det">
                <h4>{$info.title} {notempty name="info['goods_attr']"} <span id="text_selected">{$default_attribute} </span>{/notempty}</h4>
                <span style="color: #E03025;">{$info.describe}</span>
                {if condition="$info['goods_attr']"}
                <input type="hidden" id="shuxing" value="{$default_attribute}">
                {else/}
                <input type="hidden" id="shuxing" value="aa">
                {/if}

                <div class="sale_det" style="margin-top: 5px;">
                    {if condition="$limited_type gt time()&&$special_status eq 'limit'"}
                    <div class="time">
                        <span>限时抢购</span>
                        <div id="LeftTime">该商品距结束还剩：</div>
                    </div>
                    {/if}
                    <table border="0">
                        <tr class="sale_1">
                            <td class="title_1">价格</td>
                            {empty name="special_status"}
                            <td class="price">￥&nbsp;<span id="selected_price">{$info.price}</span></td>
                            {else/}
                            <td class="price">￥&nbsp;<span id="selected_price">{$special_price}</span><span>原价 ￥{$info.price}</span></td>
                            {/empty}
                        </tr>
                        <tr class="tr_address">
                            <td class="title_1">运费</td>
                            <td class="address">{$info['shop']['ship_address']} 至 <span class="cur">{$location}</span>{eq name="$info.freight_type" value="2"}包邮{else/}{$info.freight}元{/eq}<br>{$info['shop']['logistics_add']}</td>
                        </tr>
                    </table>
                    <div class="accu" style="color: black;">累积评价<br><span style="color: black;">{$info['evaluate']}+</span></div>
                </div>
                <table class="attr" border="0">
                    {volist name="info['goods_attr']" id="vo"}
                    <tr>
                        <td class="title_1" style="cursor:pointer">{$key}</td>
                        <td>
                            <ul class="list_color">
                                {volist name="vo" id="vv"}
                                <li {eq name="i" value="1" style="cursor:pointer"} class="active" {/eq}>{$vv}</li>
                                {/volist}
                            </ul>
                        </td>
                    </tr>
                    {/volist}
                    <tr>
                        <td class="title_1">数量</td>
                        <td class="num">
                            <table border="0" style="border:  1px solid #CCC; float: left;">
                                <tr>
                                    <td style="padding: 0;">
                                        <input type="button" value="-" class="text" onclick="jian();" style="width: 24px;height: 24px;line-height: 24px;display: block;border: none;outline:none;">
                                    </td>
                                    <td class="number" style="padding: 0;">
                                        <input type="text" id="num" name="num" style="width: 60px;display: block;font-size: 14px;line-height: 24px;text-align: center;border:  1px solid #CCC;border-bottom: none;border-top: none;" onkeyup="if(!/^\d+$/.test(this.value)){layer.msg('只能输入数字!'); this.value=this.value.replace(/[^\d]+/g,'');if (this.value == ''){this.value = 1}}else if (this.value==0){layer.msg('不能输入0!');this.value = 1;change_price(1);}else if (this.value==100){layer.msg('不能输入大于100!');this.value = 99;change_price(99);}else{change_price(this.value)}" value="1">
                                    </td>
                                    <td style="padding: 0;">
                                        <input type="button" value="+" class="text" onclick="jia();" style="width: 24px;height: 24px;line-height: 24px; display: block;border: none;outline:none;">
                                    </td>
                                </tr>
                            </table>
                            {eq name="info.inventory" value="0"}
                            <span>库存不足</span>
                            {else/}
                            <span>库存剩余：<span id="inventory">{$info.inventory}</span>件</span>
                            {/eq}
                        </td>
                    </tr>
                    <tr>
                        <td class="title_1">说明</td>
                        {notempty name="special_status"}
                        <td class="tips"><img src="__STATIC__/img/icon34.png"><span>不支持使用优惠券</span></td>
                        {else/}
                        <td class="tips"><img src="__STATIC__/img/icon34.png"><span>可以使用优惠券</span></td>
                        {/notempty}
                    </tr>
                </table>
                <ul class="list_input">
                    <li><input type="submit" value="立即购买" onclick="buy_now();" style="outline:none;"></li>
                    {neq name="special_status" value="limit"}
                    <li class="add"><input type="button" value="加入购物车" onclick="in_cart({$info.id})" style="outline:none;"></li>
                    {/neq}
                </ul>
                <div class="method">支付方式：<img src="__STATIC__/img/icon32.png">支付宝 <img src="__STATIC__/img/icon33.png">微信
                    {notempty name="$info['shop']['payment_add']"}<img src="__STATIC__/img/icon35.png">{/notempty}{$info['shop']['payment_add']}
                </div>

            </div>
        </div>
        <!--百度分享-->
        {notempty name="combo"}
        <div class="discount_det">
            <div class="discount_title"><span>优惠套餐</span></h4></div>
            <ul class="list_dis">
                {volist name="combo['data']" id='v'}
                <li class="goods">
                    <a href="#">
                        <img src="/{$v.thumb_img}" onerror="this.src='__STATIC__/img/232.png'">
                        <span class="price">￥{$v.price}</span>
                    </a>
                </li>
                <li class="add">+</li>
                {/volist}
                <li class="total">
                    <div>
                        <div class="dis_price">套餐价：<span>￥{$combo['combo']['combo_price']}</span></div>
                        <div class="natural_pri">价格：{$combo['combo']['total']}</div>
                        <input type="submit" value="立即购买" onclick="tao_can({$combo_id})">
                    </div>
                </li>
            </ul>
        </div>
        {/notempty}
        <div class="lot_det">
            <div class="lot_det_left left">
                <div class="shop_name">
                    <h4 class="lot_det_title" onclick="contact_seller()">{$info.shop.title}<img src="__STATIC__/img/icon28.png"></h4>
                    <ul>
                        <li class="left"><a href="{:url('Shop/index',['shop_id'=>$info.shop.member_id])}"><img src="__STATIC__/img/icon36.png">进店逛逛</a></li>
                        <li class="right"><a href="javascript:collect({$info['member_id']},2);">{eq name="shop_collect" value="1"}<img src="__STATIC__/img/icon30.png" class="icon_img">{else/}<img src="__STATIC__/img/icon29.png" class="icon_img">{/eq}关注店铺</a></li>
                    </ul>

                </div>
                <div class="lot_look">
                    <h4 class="lot_det_title">看了又看</h4>
                    <ul>
                        {volist name="like_list" id="vo"}
                        <li>
                            <a href="{:url('ShopGoods/index',['good_id'=>$vo.id])}" target="_blank">
                                <img src="/{$vo.thumb_img}" onerror="this.src='__STATIC__/img/232.png'">
                                <div class="name">{$vo.title}</div>
                                <div class="price"> ￥{$vo.price}</div>
                                <div class="review">{$vo.collect}人已收藏</div>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>

            </div>
            <div class="lot_det_right right">
                <ul class="list_det_title">
                    <li class="active"><a href="javascript:;">商品详情</a></li>
                    <li><a href="javascript:;">规格参数</a></li>
                    <li><a href="javascript:;">用户评价（{$info['evaluate']}）</a></li>
                    <li><a href="javascript:;">售后保障</a></li>
                </ul>
                <div class="list_det_con">
                    <!--商品详情-->
                    <div class="goods_det active">
                        {$info.content}
                    </div>
                    <!--规格参数-->
                    <div>
                        <table class="table_det" border="0">
                            <tr>
                            {volist name="goods_flag" id="vo" offset="0" length="2"}

                                <td>{$vo.flag_name}：{$vo.flag_value}</td>
                            {/volist}
                            </tr>
                            {volist name="goods_flag" id="vo" offset="2" mod="2"}
                            {eq name="mod" value="0"}<tr>{/eq}
                                <td>{$vo.flag_name}：{$vo.flag_value}</td>
                            {eq name="mod" value="1"}</tr>{/eq}
                            {/volist}
                        </table>
                    </div>
                    <!--用户评价-->
                    <div class="review_level">
                        <ul class="list_level">
                            <li class="active">全部（{$info['evaluate']}）</li>
                            <li>好评（{$info['total_praise']}）</li>
                            <li>中评（{$info['total_middle']}）</li>
                            <li>差评({$info['total_belittle']})</li>
                        </ul>
                        <div class="list_level_con">
                            <div class="active">
                                <ul class="review_det">
                                    {volist name="evaluate_info" id="vo"}
                                    <li>
                                        <div class="user left" style="width: 100px;">
                                            <img src="/{$vo['Member']['avatar']}" onerror="this.src='/static/shop/img/pic29.png'">
                                            <span>{$vo['Member']['nickname']|reStrLen=###,5}</span>
                                        </div>
                                        <div class="review_tips left">
                                            <div class="level_star">
                                                {for start="0" end="$vo.grade"}
                                                <img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {/for}
                                            </div>
                                            <div class="tips_det">{$vo['content']}</div>
                                            <ul>
                                                {volist name="$vo['picArr']" id="vv"}
                                                <li><img src="/{$vv['path']}"></li>
                                                {/volist}
                                            </ul>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                                <div class="page page_review">
                                    {$evaluate_info->render()}
                                </div>
                            </div>
                            <div>
                                <ul class="review_det">
                                    {volist name="praise" id="vo"}
                                    <li>
                                        <div class="user left" style="width: 100px;">
                                            <img src="/{$vo['Member']['avatar']}" onerror="this.src='/static/shop/img/pic29.png'">
                                            <span>{$vo['Member']['nickname']|reStrLen=###,5}</span>
                                        </div>
                                        <div class="review_tips left">
                                            <div class="level_star">
                                                {for start="0" end="$vo.grade"}
                                                <img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {/for}
                                            </div>
                                            <div class="tips_det">{$vo['content']}</div>
                                            <ul>
                                                {volist name="$vo['picArr']" id="vv"}
                                                <li><img src="/{$vv['path']}"></li>
                                                {/volist}
                                            </ul>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                                <div class="page page_review">
                                    {$praise->render()}
                                </div>
                            </div>
                            <div>
                                <ul class="review_det">
                                    {volist name="comments" id="vo"}
                                    <li>
                                        <div class="user left" style="width: 100px;">
                                            <img src="/{$vo['Member']['avatar']}" onerror="this.src='/static/shop/img/pic29.png'">
                                            <span>{$vo['Member']['nickname']|reStrLen=###,5}</span>
                                        </div>
                                        <div class="review_tips left">
                                            <div class="level_star"><img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {for start="0" end="$vo.grade"}
                                                <img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {/for}
                                            </div>
                                            <div class="tips_det">{$vo['content']}</div>
                                            <ul>
                                                {volist name="$vo['picArr']" id="vv"}
                                                <li><img src="/{$vv['path']}"></li>
                                                {/volist}
                                            </ul>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                                <div class="page page_review">
                                    {$comments->render()}
                                </div>
                            </div>
                            <div>
                                <ul class="review_det">
                                    {volist name="bad" id="vo"}
                                    <li>
                                        <div class="user left" style="width: 100px;">
                                            <img src="/{$vo['Member']['avatar']}" onerror="this.src='/static/shop/img/pic29.png'">
                                            <span>{$vo['Member']['nickname']|reStrLen=###,5}</span>
                                        </div>
                                        <div class="review_tips left">
                                            <div class="level_star">
                                                <img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {for start="0" end="$vo.grade"}
                                                <img src="__STATIC__/img/star1.png" title="" alt="" class="star">
                                                {/for}
                                            </div>
                                            <div class="tips_det">{$vo['content']}</div>
                                            <ul>
                                                {volist name="$vo['picArr']" id="vv"}
                                                <li><img src="/{$vv['path']}"></li>
                                                {/volist}
                                            </ul>
                                        </div>
                                    </li>
                                    {/volist}
                                </ul>
                                <div class="page page_review">
                                    {$bad->render()}
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--售后保障-->
                    <div></div>
                </div>

            </div>

        </div>

    </div>
    <form id="order">
        <input type="hidden" id="goods_id" value="{$info['id']}" name="goods_id">
        <input type="hidden" id="goods_attr_id" value="" name="goods_attr_id">

        <input type="hidden" id="default_price" {notempty name="special_status"}value="{$special_price}" {else/}value="{$info['price']}"{/notempty} name="default_price">

        <input type="hidden" id="shop_id" value="{$info['member_id']}" name="shop_id">
        <input type="hidden" id="acturl_price" value="{$info['price']}" name="acturl_price">
        <!--特价商品默认0-->
        <input type="hidden" name="special_status" {eq name="special_status" value="limit" }value="1"{else/}value="0"{/eq}/>
        <input type="hidden" id="end_time" value="{:date('Y/m/d H:i:s',$limited_type)}">
    </form>
</div>
{if condition="$limited_type gt time()&&$special_status eq 'limit'"}
<script>
    //倒计时效果js代码
    function checktime(i) {
        if (i < 10) {
            i = "0" + i;

        }
        else {
            i = i;
        }
        return i;
    }
    function freshTime() {
        var endtime = new Date($('#end_time').val());

        var nowtime = new Date();
        var lefttime = parseInt(endtime.getTime() - nowtime.getTime());//这是毫秒，如果再/1000就是秒
        // 获取剩下的日、小时、分钟、秒钟
        // 一天有多少毫秒，一小时有多少毫秒，一分钟有多少毫秒，一秒钟有多少毫秒
        var dm = 24 * 60 * 60 * 1000;
        var d = parseInt(lefttime / dm);
        var hm = 60 * 60 * 1000;
        var h = parseInt((lefttime / hm) % 24);
        var mm = 60 * 1000;
        var m = parseInt((lefttime / mm) % 60);
        var s = parseInt((lefttime / 1000) % 60);
        m = checktime(m);
        s = checktime(s);
        document.getElementById('LeftTime').innerHTML = "本次活动距离结束还剩：<span>"+h+"</span>分<span>"+m+"</span>秒<span>"+s+"</span>";

        if (lefttime == 0) {
            location.reload();
        }

        if (lefttime < 0) {
            document.getElementById('LeftTime').innerHTML = "抢购活动已经结束！";
        }
    }
    freshTime();
    var sh;
    sh = setInterval('freshTime()', 1000);
</script>
{/if}
<script>

    // 收藏商品 收藏店铺
    function collect(id, type) {
        $.ajax({
            url: "{:url('shop/collect/member_collect')}",
            type: 'post',
            dateType: 'json',
            data: {'id': id, 'type': type},
            success: function (t) {
                if (t.code == 200) {
                    layer.msg(t.message);
                    location.reload();
                } else {
                    layer.msg(t.message);
                    location.reload();
                }

            }
        })
    }

    $(function () {

        // 属性选择
        $(".attr li").click(

                function () {
                    text_change();
                }
        );
        // 改变价格
        function text_change() {
            //改变值
            var text = '';
            $('.list_color .active').each(function (i, o) {
                text += $(o).text() + ',';
            });
            var new_text = text.substr(0, text.length - 1);

            $('#text_selected').text(new_text);
            if (!"{$special_status}") {
                //非限时商品
                ajax_new(new_text);
                $('#num').val(1);
            } else {
                $('#num').val(1);
                ajax_limit(new_text);
            }

        };


        // 限时抢购选属性
        function ajax_limit(text) {
            $('#shuxing').val(text);
        }

        //ajax调用新价格
        function ajax_new(text) {
            var goods_id = $('#goods_id').val();
            $.ajax({
                url: "{:url('shop/shop_goods/new_attr')}",
                type: 'post',
                dateType: 'json',
                data: {'text': text, 'goods_id': goods_id},
                success: function (t) {
                    if (t.code == 200) {
                        $('#default_price').val(t.price);
                        var new_price = t.price;
                        $('#selected_price').text(new_price);
                        $('#goods_attr_id').val(t.id);
                        $('#shuxing').val(text);
                        $('#inventory').text(t.inventory);

                    }
                }
            })
        }
    });

    //改变价格
    function change_price() {
        var num = $('#num').val();
        var default_price = $('#default_price').val();
        var new_price_number = num * default_price;
        var new_price = new_price_number;
        $('#selected_price').text(new_price);
    }

    function jian() {
        var num = $('#num');
        var price = parseFloat($('#default_price').val());
        if (num.val() == 1) {
            layer.msg('不能再减了');
            return false;
        }
        num.val(num.val() - 1);
        $('#selected_price').text((price * num.val()).toFixed(2));
    }

    function jia() {
        var num = $('#num');
        if (num.val() == 99) {
            layer.msg('不能再加了');
            return false;
        }
        var price = parseFloat($('#default_price').val());
        num.val(parseInt(num.val()) + 1);

        $('#selected_price').text((price * num.val()).toFixed(2));
    }


    function buy_now() {

        // 判断是否选择属性
        var attr = $('#shuxing').val();
        if (attr == "") {
            layer.msg('请选择属性');

        } else {
            $('#order').ajaxSubmit({
                url: "{:url('shop/shop_cart/buy_now')}",
                type: 'post',
                dataType: 'json',
                data: {
                    'price': $('#selected_price').text(),
                    'attr': $('#text_selected').text(),
                    'num': $('#num').val(),
                    'goods_attr_id':$('#goods_attr_id').val(),
                },
                success: function (t) {
                    if (t.code == 200) {

                        window.location.href = "{:url('shop/shop_cart/confirm_order')}?act=temporary&cart_id=" + t.message;
                    } else if (t.code==401){
                        //未登录
                        layer.msg(t.message);
                        setTimeout(function () {
                            window.location.href="{:url('shop/login/index')}";
                        }, 2000);

                    }else {
                        layer.msg(t.message);
                    }
                }
            })
        }

    }
function back_index(){
        window.location.href = "{:url('shop/index',['shop_id' => $info['shop']['member_id']])}";
        //window.open('/');
}
    // 加入购物车
    function in_cart(id) {
        // 获取参数
        var num = $('#num').val(),
                attr = $('#text_selected').text(),
                price = $('#default_price').val(),
                shop_id = $('#shop_id').val();
        var attrs = $('#shuxing').val();
        // 属性选择判断
        if (attrs == "") {
            layer.msg('请选择属性');
        } else {
            $.ajax({
                url: "{:url('shop/shop_cart/default_cart')}",
                type: 'post',
                dateType: 'json',
                data: {'id': id, 'attr': attr, 'num': num, 'price': price, 'shop_id': shop_id},
                success: function (t) {
                    if (t.code == 200) {
                        layer.msg(t.message);
                    } else if (t.code == 401) {

                        //未登录
                        layer.msg(t.message);

                        setTimeout(function () {
                            window.location.href="{:url('shop/login/index')}";
                        },2000);
                    } else {
                        layer.msg(t.message);
                    }
                }
            })
        }


    }

    // 套餐
    function tao_can(id) {
        layer.open({
            title: '套餐管理',
            type: 2,
            area: ['1000px', '600px;'],
            fixed: false, //不固定
            maxmin: true,
            content: "{:url('shop/shop_cart/combo_list')}?combo_id="+id
        });
    }


    // 领取优惠券
    function receive_coupons(cid) {
        $.ajax({
            url: "{:url('Coupon/receive_coupons')}",
            dataType: 'json',
            type: 'post',
            data: {'coupon_id': cid},
            success: function (t) {
                if (t.code == 200) {
                    layer.msg('恭喜你领取成功！');
                    location.reload();
                } else {
                    layer.msg(t.message);
                }
            }
        })
    }


    function contact_seller() {
        var t = "{$info[\"shop\"][\"url\"]}";
        if(!t){
            layer.msg('该店铺没有添加联系方式');
            return false;
        }
        window.open('http://wpa.qq.com/msgrd?v=3&uin={$info["shop"]["url"]}&site=qq&menu=yes')
    }
    window._bd_share_config = {
        "common": {
            "bdSnsKey": {},
            "bdText": "",
            "bdMini": "1",
            "bdMiniList": false,
            "bdPic": "",
            "bdStyle": "0",
            "bdSize": "16"
        },
        "share": {},
        "image": {"viewList": ["qzone", "tsina", "renren", "weixin"], "viewText": "分享到：", "viewSize": "16"},
        "selectShare": {"bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "renren", "weixin"]}
    };
    with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
</script>
{include file="public_foot"}